<!DOCTYPE html>
<html lang="en">
<link rel="shortcut icon" href="./images/Icon.ico" type="./image/x-icon" />
<head>
    <meta charset="UTF-8">
    <title>Netty for Yes</title>
</head>
<style>
    textarea{
        margin: 0px;
        width: 679px;
        height: 262px;
    }
</style>
<body>
    <center><h2>欢迎来到Netty服务器</h2></center>

    <center>
    <textarea id="area" placeholder="请输入文本....">
    </textarea>
        <br/>
    <button onclick="query()">提交</button>
    </center>
</body>

<script src="https://code.jquery.com/jquery-3.1.1.min.js"/>
<script type="text/javascript">
     function query() {
         $.ajax({
             type: "post",
             url: "/test",
             data: {username:"zhangsan", content:"wanwu"},
             dataType: "json",
             success: function(data){
                alert(JSON.stringify(data));
             }
         });

          alert(111);
     }
</script>
</html>